﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ServiceCore.Tool.JD_Pay
{
    public class paynotify_Result
    {
        public string resultCode { get; set; }

        public string errCode { get; set; }
        public string errCodeDes { get; set; }

        public string merchantNo { get; set; }
        public string businessCode { get; set; }

        public string version { get; set; }
        /// <summary>
        /// 外部订单号
        /// </summary>
        public string outTradeNo { get; set; }
        /// <summary>
        /// 平台订单号
        /// </summary>
        public string tradeNo { get; set; }
        /// <summary>
        /// 交易状态 CLOSE  ：已关闭   FINISH  ：交易成功（此状态下才会异步通知） 
        /// </summary>
        public string payStatus { get; set; }
        /// <summary>
        /// 产品类型 QR(二维码)，BAR(条形码)，CASH(收银台), SUBSCRIPTION：公众号预下单，MINIPROGRAM：小程序预下单，SIGN：协议扣款。
        /// </summary>
        public string productType { get; set; }
        /// <summary>
        /// 交易子类型 SALE(消费/支付) 
        /// </summary>
        public string subTradeType { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        public string currency { get; set; }
        /// <summary>
        /// 交易金额 分，交易金额=支付渠道交易金额+商户优惠金额+平台营销金额
        /// </summary>
        public long amount { get; set; }
        /// <summary>
        /// 回传参数
        /// </summary>
        public string returnParams { get; set; }
        /// <summary>
        /// 支付渠道
        /// </summary>
        public string piType { get; set; }
        /// <summary>
        /// 交易成功时间
        /// </summary>
        public string payFinishTime { get; set; }
        /// <summary>
        ///  交易渠道金额
        /// </summary>
        public long piAmount { get; set; }
        /// <summary>
        /// 商户优惠金额
        /// </summary>
        public long merchantCouponAmount { get; set; }
        /// <summary>
        /// 平台营销金额
        /// </summary>
        public long couponAmount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string extMapStr { get; set; }
        /// <summary>
        /// 微信支付宝订单号  当交易成功时有返回，  微信支付返回微信单号， 支付宝支付返回支付宝单号 
        /// </summary>
        public string transactionId { get; set; }
        /// <summary>
        /// 系统名称 接入系统名称，systemId
        /// </summary>
        public string appId { get; set; }
        /// <summary>
        /// 账单退款条形码
        /// </summary>
        public string channelNoSeq { get; set; }
        /// <summary>
        /// 用户标识
        /// </summary>
        public string openId { get; set; }
    }
}
